Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bunch of broken behaviors around authentication, basic homepage #87

Merged
merged 5 commits into from
Nov 19, 2024

Conversation

vcarl
Copy link
Member

@vcarl vcarl commented Nov 19, 2024

No description provided.

Copy link

what-the-diff bot commented Nov 19, 2024

PR Summary

  • User Login Experience Enhanced: We have updated the way how users sign in, and to streamline this process, we removed the dependency on useSearchParams. Instead, we introduced a redirectTo prop that controls where the user should go once they log in. We have also added an option to provide custom button text for more flexibility.

  • User Logout Functionality Introduced: A new Logout component is added to facilitate the process of logging out. It includes a method to handle logout actions effectively.

  • Improved Session Management: The handling of session data has improved. Now, when no data exists, an empty session is returned by default to prevent any errors. We also improved how expiration is handled in the session update.

  • Better OAuth Flow Management: The functions handling OAuth login (initOauthLogin and completeOauthLogin) have been upgraded to better manage states and redirect URLs. This ensures smoother transitions and better handling of user data.

  • Refined Authentication Routes: The auth route logic now provides more efficient redirect handling and better utilization of the redirectTo parameter. This ensures that the users land on the right page after their login process.

  • Enhancement of Index Page: We added a development message for the Discord bot project to keep everyone informed about the progress. For the convenience of logged-in users, we included the newly developed Logout component.

  • Simplified Logout Route: The process of logging out is made more straightforward. We are directly using the new Logout component instead of the manual Form implementation.

  • Updated Styling Framework Version: The version of Tailwind CSS has been updated to v3.2.1, bringing more features and flexibility. This update includes various adjustments to improve the responsiveness of the interface and semantic correctness to enhance the overall user experience.

@vcarl vcarl merged commit 8a19925 into main Nov 19, 2024
5 checks passed
@vcarl vcarl deleted the vc-site-basics branch November 19, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant